# Youtube - themonkeylords python 3 turorial
# Some newer things that were not included in thenewbostons tutorials
#update

# Tutorial 18
# format() can be used in these ways
print("Hey there, {} how's your {}".format("selina", "foot"))
print("Hello {1}, tell {0} to meet me".format("Mr. A", "Mr. B"))

print("{:<30}'".format('left aligned')) # Left Alignment
print("{:>40}'".format('right aligned')) # Right Alignment
print("{:^30}'".format('centered')) # Center Alignment
print("{:*^30}'".format("centered using '*'")) # Center Alignment with fill characters
print("This is Some {:>20} {:>20}".format("formatted", "text")) # Alignment suitable for a table
print("This number has been rounded off {0:5.3f}".format(3.14592))

# Example of printing a table like structure
for i in range(1, 11):
    print("{} {:>10} {:>10}".format(i, i**2, i**3))

for i in range(1, 11):
    print("{:<10} {:<10} {:<10}".format(i, i**2, i**3))
    
